﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace XiaoMi.JsonTypes
{
    public class Miphone
    {
        [JsonProperty("hdstart")]
        public bool Hdstart;

        [JsonProperty("hdstop")]
        public bool Hdstop;

        [JsonProperty("hdurl")]
        public string Hdurl;

        [JsonProperty("duration")]
        public object Duration;

        [JsonProperty("pmstart")]
        public bool Pmstart;

        [JsonProperty("reg")]
        public bool Reg;
    }

    public class Mibox
    {
        [JsonProperty("hdstart")]
        public bool Hdstart;

        [JsonProperty("hdstop")]
        public bool Hdstop;

        [JsonProperty("hdurl")]
        public string Hdurl;

        [JsonProperty("duration")]
        public object Duration;

        [JsonProperty("pmstart")]
        public bool Pmstart;

        [JsonProperty("reg")]
        public bool Reg;
    }

    public class Mitv
    {
        [JsonProperty("hdstart")]
        public bool Hdstart;

        [JsonProperty("hdstop")]
        public bool Hdstop;

        [JsonProperty("hdurl")]
        public string Hdurl;

        [JsonProperty("duration")]
        public object Duration;

        [JsonProperty("pmstart")]
        public bool Pmstart;

        [JsonProperty("reg")]
        public bool Reg;
    }

    public class Mipower
    {
        [JsonProperty("hdstart")]
        public bool Hdstart;

        [JsonProperty("hdstop")]
        public bool Hdstop;

        [JsonProperty("hdurl")]
        public string Hdurl;

        [JsonProperty("duration")]
        public object Duration;

        [JsonProperty("pmstart")]
        public bool Pmstart;

        [JsonProperty("reg")]
        public bool Reg;
    }

    public class Status
    {
        [JsonProperty("miphone")]
        public Miphone Miphone;

        [JsonProperty("mibox")]
        public Mibox Mibox;

        [JsonProperty("mitv")]
        public Mitv Mitv;

        [JsonProperty("mipower")]
        public Mipower Mipower;
    }

    public class XiaoMiEntity
    {
        [JsonProperty("stime")]
        public int Stime;

        [JsonProperty("d22a51")]
        public int D22a51;

        [JsonProperty("status")]
        public Status Status;
    }
}

namespace XiaoMi
{
   

}
